package com.dankegongyu.component.jsbridge.bean;


import androidx.annotation.DrawableRes;
import androidx.annotation.Keep;


/**
 * Created by Admin on 2018/5/2.
 */
@Keep
public class DKWebMenuBean {

    public final static String TARGET_WINDOW = "window";
    public final static String TARGET_SELF = "self";

    private String name;
    private String router;
    private String target;

    private String h5Method;
    private String h5Args;

    @DrawableRes
    private int _icon;// 按钮的图片

    // 1.8.0 新增
    public final static String TYPE_TEXT = "text";
    public final static String  TYPE_IMAGE = "image";
    private String type = "";// 文字还是按钮
    private String textColor = "";
    private String textSize = "";
    private String backgroundColor = "";

    private String imageUrl = "";

    private String menuItemImageUrl = "";

    public final static String ACTION_TYPE_ROUTER = "route";
    public final static String  ACTION_TYPE_H5 = "H5Method";
    private String actionType = "";
    // 1.8.0 新增 end

    /**
     * 目前与分享相关的字段。以后其他地方可能复用
     */
    private String title;// 分享的标题
    private String image;// 分享的图片地址
    private String description;// 分享的内容描述
    private String pageUrl;// 分享的地址

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRouter() {
        return router;
    }

    public void setRouter(String router) {
        this.router = router;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public int get_icon() {
        return _icon;
    }

    public void set_icon(int _icon) {
        this._icon = _icon;
    }

//    public boolean is_isVisibleIcon() {
//        return _isVisibleIcon;
//    }
//
//    public void set_isVisibleIcon(boolean _isVisibleIcon) {
//        this._isVisibleIcon = _isVisibleIcon;
//    }
//
//    public int get_type() {
//        return _type;
//    }
//
//    public void set_type(int _type) {
//        this._type = _type;
//    }


    public String getH5Method() {
        return h5Method;
    }

    public void setH5Method(String h5Method) {
        this.h5Method = h5Method;
    }

    public String getH5Args() {
        return h5Args;
    }

    public void setH5Args(String h5Args) {
        this.h5Args = h5Args;
    }

//    public boolean isTextVisible() {
//        return isTextVisible;
//    }
//
//    public void setTextVisible(boolean textVisible) {
//        isTextVisible = textVisible;
//    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTextColor() {
        return textColor;
    }

    public void setTextColor(String textColor) {
        this.textColor = textColor;
    }

    public String getTextSize() {
        return textSize;
    }

    public void setTextSize(String textSize) {
        this.textSize = textSize;
    }

    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    public String getMenuItemImageUrl() {
        return menuItemImageUrl;
    }

    public void setMenuItemImageUrl(String menuItemImageUrl) {
        this.menuItemImageUrl = menuItemImageUrl;
    }
}
